package cn.com.nes.site.entity.vo.crm;

import cn.com.nes.site.entity.vo.PageVO;
import cn.com.nes.site.service.crm.customer.bo.CustomerHouseBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;

/**
 * 查询客户房屋信息分页VO
 *
 * @Author: ShenWei
 * @Date: 2024/07/23/11:15
 */
@ApiModel(value = "房屋分页查询入参模型")
@Data
public class GetCustomerHousePageVO extends PageVO {

    @ApiModelProperty(value = "客户UUID", required = true)
    @NotNull(message = "客户UUID")
    private String customerUuid;

    @ApiModelProperty(value = "行政区划")
    private String areaCode;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "门牌号")
    private String houseNumber;

    public CustomerHouseBO convertToBo() {
        CustomerHouseBO customerHouseBO = new CustomerHouseBO();
        BeanUtils.copyProperties(this, customerHouseBO);
        return customerHouseBO;
    }


}
